// 获取图片的base64
const getBASE64 = (file:Blob) => {
	return new Promise((resolve, reject) => {
		let reader = new FileReader();
		reader.readAsDataURL(file);
		reader.onload = (ev) => {
			resolve(ev.target?.result);
		};
	});
};

export default getBASE64;